<%@ page language="java" pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
  <head>
    <html:base />
    
    <title>managersAdd.jsp</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript" language="javascript">
		function checkForm(){
			var pwd1 = document.getElementById("adminName").value;
			var pwd2 = document.getElementById("adminPass").value;
			if(pwd1==""){
				alert("登录名称不可以为空");
				document.getElementById("adminName").focus();
				document.getElementById("adminName").select();
				return false;
			}
			if(pwd2==""){
				alert("密码不可以为空");
				document.getElementById("adminPass").focus();
				document.getElementById("adminPass").select();
				return false;
			}
			return true;	
		}	
	</script>
	

  </head>
  
  <body >
  <%
  if(request.getAttribute("adminName")==null){
  request.setAttribute("adminName","用户名不可为空");
  }
   %>
 
    <html:form action="/admin/managers/list.do?method=add" enctype="multipart/form-data" >
    <table  border="0"  align=center cellpadding="0" cellspacing="0">
    <tr>
    <td>登录名称:</td><td><html:text property="adminName"></html:text><font color="red">*
    <%=request.getAttribute("adminName") %></font>
    </td> 
    </tr>
    <tr>
    <td>登录密码:</td><td><html:password property="adminPass"></html:password><font color="red">*</font></td>
    </tr>
    <tr><td>真实姓名:</td><td><html:text property="realyName"></html:text></td></tr>
    <tr><td>上传图片:</td><td><html:file property="picStr"></html:file></td></tr>
    <tr><td>备注:</td><td><html:textarea property="beizhu"></html:textarea></td></tr>
    <tr><td><html:submit onclick="return checkForm();">提交</html:submit></td><td><html:reset>重置</html:reset></td></tr>
    </table>
    </html:form>
  </body>
</html:html>







